home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(load){
- _root.bgm.stop();
- _root.bgm.attachSound("mus1");
- _root.bgm.start();
- stop();
- zol = 1;
- while(zol <= 4)
- {
- _root["org" + zol].kar.gotoAndStop(_root.boil[zol]);
- _root["org" + zol].codenum2 = _root.boil[zol];
- _root["org" + zol].codenum = zol;
- zol++;
- }
- i = 1;
- while(i <= 7)
- {
- _root["br" + i]._visible = 0;
- i++;
- }
- i = 1;
- while(i <= _root.nowball)
- {
- _root["br" + i]._visible = 1;
- i++;
- }
- _root.uis.gotoAndStop(_root.nowchar);
- _root.noj = 1;
- _root.juara = [0,0,0,0,0];
- _root.xxx = 30;
- _root.yyy = 30;
- _root.bonus = 0;
- _root.bonus1 = 0;
- _root.bonus2 = 0;
- _root.bonus3 = 0;
- _root.bonus4 = 0;
- _root.boost = 0;
- _root.jumplit = 0;
- _root.kame = 1;
- _root.mspeed = 0;
- _root.tim = 0;
- _root.maxbns = [0,15,17,17,20,20,1];
- _root.tottai = 0;
- _root.fastfood = 180;
- i = 2;
- while(i <= 4)
- {
- _root["org" + i].ambil = 0;
- _root["org" + i].pauss = 0;
- _root["org" + i].b1 = 0;
- _root["org" + i].b2 = 0;
- _root["org" + i].b4 = 0;
- _root["org" + i].bns1 = 0;
- _root["org" + i].bns2 = 0;
- _root["org" + i].bns4 = 0;
- _root["org" + i].speed = 10;
- _root["org" + i].jumping = false;
- _root["org" + i].gravity = 10;
- _root["org" + i].jumpspeed = 19;
- _root["org" + i].js = _root["org" + i].jumpspeed;
- _root["org" + i].ssp = 10;
- _root["org" + i].boost = 0;
- _root["org" + i].kena = 0;
- _root["org" + i].k = 0;
- _root["org" + i].kame = 1;
- _root["org" + i].divr = 0;
- _root["org" + i].bonusan = 0;
- _root["org" + i].bonus = 0;
- _root["org" + i].jumplit = 0;
- _root["org" + i].shields = 0;
- _root["org" + i].fini = 0;
- _root["org" + i].kamecharge = 0;
- _root["org" + i].onEnterFrame = function()
- {
- with(this)
- {
- if(fini == 1)
- {
- _x += 10;
- _y = 243;
- }
- }
- if(this.pauss != 1)
- {
- with(this)
- {
- if(tari.hitTest(_root.gor.fin) and fini != 1)
- {
- _root.juara[_root.noj] = codenum2;
- _root.noj = _root.noj + 1;
- fini = 1;
- gravity = 10;
- pauss = 1;
- _y = 243;
- }
- if(kame == 1)
- {
- kamecharge++;
- if(kamecharge >= 60)
- {
- kame = 0;
- kamecharge = 0;
- }
- }
- if(bns1 == 1)
- {
- b1++;
- if(b1 >= 60)
- {
- boost = 0;
- bns1 = 0;
- b1 = 0;
- kar.char.gotoAndStop(1);
- }
- }
- if(bns2 == 1)
- {
- b2++;
- if(b2 >= 120)
- {
- shields = 0;
- bns2 = 0;
- b2 = 0;
- shil.removeMovieClip();
- }
- }
- if(bns3 == 1 and jumping != true)
- {
- _root.tottai = _root.tottai + 1;
- _root.attachMovie("tai","tai" + _root.tottai,100 + _root.tottai);
- _root["tai" + _root.tottai]._x = _x - 15;
- _root["tai" + _root.tottai]._y = _y + 15;
- _root["tai" + _root.tottai].onEnterFrame = function()
- {
- if(_root.org1.spon != 0)
- {
- this._x -= _root.org1.spon;
- }
- i = 1;
- while(i <= 4)
- {
- if(this.hitTest(_root["org" + i]) and i != codenum)
- {
- if(_root["org" + i].shields != 1)
- {
- _root["org" + i].ssp = 0;
- _root["org" + i].kena = 1;
- _root["org" + i].k = 0;
- _root["org" + i].kar.char.gotoAndStop(3);
- this.removeMovieClip();
- break;
- }
- this.removeMovieClip();
- }
- i++;
- }
- };
- bns3 = 0;
- }
- if(_root.org1._x - _x >= _root.fastfood)
- {
- divr = 7;
- }
- else if(_root.org1._x - 30 - _x <= 0)
- {
- divr = 0;
- }
- kam = random(30) + 1;
- if(kam == 1 and kame != 1 and jumping != true and _root.allstop != 1)
- {
- this.kar.char.gotoAndStop(4);
- kameh = 1;
- kame = 1;
- }
- if(kena == 1)
- {
- k++;
- if(k >= 24)
- {
- boost = 0;
- divr = 0;
- k = 0;
- kena = 0;
- ssp = 10 + divr + boost;
- kar.char.gotoAndStop(1);
- }
- }
- if(!_root.gor.hitTest(_x + 30 - 1,_y,true))
- {
- }
- if(_root.gor.hitTest(_x,_y - 89,true) and kena != 1)
- {
- if(jumping != true)
- {
- jumping = true;
- }
- }
- if(!_root.gor.hitTest(_x + 33,_y,true))
- {
- uy = _root.org1.spon;
- if(_root.org1.ssp <= 0)
- {
- uy = 0;
- }
- if(_root.org1.kenal == 1)
- {
- _x += ssp + divr + boost;
- }
- else
- {
- if(_root.org1.kena2 == 1)
- {
- cd = ssp + divr + boost;
- }
- else
- {
- cd = ssp + divr + boost - uy;
- }
- _x += cd;
- }
- }
- else
- {
- jumping = true;
- }
- if(!_root.gor.hitTest(_x,_y + 30,true) && jumping == false)
- {
- _y += gravity;
- gravity += 1;
- if(_root.gor.hitTest(_x + 31,_y,true))
- {
- _x -= 10;
- }
- }
- if(jumping == true)
- {
- _y -= jumpspeed;
- jumpspeed -= 2;
- if(_root.gor.hitTest(_x + 29,_y,true))
- {
- _x -= 15;
- }
- }
- if(_root.gor.hitTest(_x,_y + 29,true))
- {
- gravity = 10;
- jumping = false;
- jumpspeed = js;
- }
- if(_root.gor.hitTest(_x,_y + 29,true))
- {
- if(_y >= 240)
- {
- _y = 240;
- }
- else if(_y >= 210)
- {
- _y = 210;
- }
- else if(_y >= 180)
- {
- _y = 180;
- }
- else if(_y >= 150)
- {
- _y = 150;
- }
- else if(_y >= 120)
- {
- _y = 120;
- }
- else if(_y >= 90)
- {
- _y = 90;
- }
- else if(_y >= 60)
- {
- _y = 60;
- }
- _y += 3;
- }
- if(ambil == 1)
- {
- am++;
- if(am >= 12)
- {
- ambil = 0;
- }
- }
- if(_root.gor.hitTest(_x,_y - 30 + 15,true))
- {
- i = 1;
- while(i <= _root.maxbns[_root.stage])
- {
- if(tar.hitTest(_root.gor["bns" + i]) and _root.gor["bns" + i].dead != 1 and ambil != 1)
- {
- if(_root.gor["bns" + i].pol != 1)
- {
- ambil = 1;
- bonus = random(4) + 1;
- _root.gor["bns" + i].pol = 1;
- _root.gor["bns" + i].dead = 1;
- _root.gor["bns" + i].gotoAndStop(2);
- bonusan = bonus;
- switch(bonus)
- {
- case 1:
- boost = 5;
- bns1 = 1;
- kar.char.gotoAndStop(2);
- break;
- case 2:
- bns2 = 1;
- shields = 1;
- attachMovie("shil" + codenum2,"shil",3);
- break;
- case 3:
- bns3 = 1;
- break;
- case 4:
- bns3 = 1;
- }
- break;
- }
- }
- i++;
- }
- _y += 5;
- jumpspeed = -1;
- }
- }
- }
- };
- i++;
- }
- _root.gor._x = 0;
- stop();
- }
-